projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd17f9b
)
blktap2: Fix off-by-one error in driver lookup
author
Keir Fraser
<keir.fraser@citrix.com>
Tue, 15 Sep 2009 08:16:52 +0000
(09:16 +0100)
committer
Keir Fraser
<keir.fraser@citrix.com>
Tue, 15 Sep 2009 08:16:52 +0000
(09:16 +0100)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/blktap2/drivers/tapdisk-server.c
patch
|
blob
|
history
diff --git
a/tools/blktap2/drivers/tapdisk-server.c
b/tools/blktap2/drivers/tapdisk-server.c
index c6a3de514e401ad49f69f1f54b9fcc0450479410..4d9c426f4ac35a767b7bba33c13b7d73806ca199 100644
(file)
--- a/
tools/blktap2/drivers/tapdisk-server.c
+++ b/
tools/blktap2/drivers/tapdisk-server.c
@@
-53,7
+53,7
@@
tapdisk_server_find_driver_interface(int type)
int n;
n = sizeof(dtypes) / sizeof(struct disk_info_t *);
- if (type > n)
+ if (type >
=
n)
return NULL;
return dtypes[type]->drv;